import request from '@/utils/request'

// 查询业务员审核列表
export function listSalesmanApply(query) {
  return request({
    url: '/salesmanApply/salesmanApply/list',
    method: 'get',
    params: query
  })
}

// 查询业务员审核详细
export function getSalesmanApply(id) {
  return request({
    url: '/salesmanApply/salesmanApply/' + id,
    method: 'get'
  })
}

// 新增业务员审核
export function addSalesmanApply(data) {
  return request({
    url: '/salesmanApply/salesmanApply',
    method: 'post',
    data: data
  })
}

// 修改业务员审核
export function updateSalesmanApply(data) {
  return request({
    url: '/salesmanApply/salesmanApply',
    method: 'put',
    data: data
  })
}

// 删除业务员审核
export function delSalesmanApply(id) {
  return request({
    url: '/salesmanApply/salesmanApply/' + id,
    method: 'delete'
  })
}
